package com.dingqb.androidproject.leak;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.view.ViewStub;
import android.widget.ProgressBar;

import com.dingqb.androidproject.R;

/**
 * Created by dingqb on 2018/4/2.
 */

public class LeakActivity extends Activity {
    private static final String TAG = "LeakActivity";
    private ViewStub viewStub;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_leak);
        viewStub = findViewById(R.id.viewstub);
        View view = viewStub.inflate();
        initView(view);
    }

    private void testLeak() {
        UserManger manager = UserManger.getInstance(this);
    }

    void initView(View view) {
        ProgressBar progressbar = view.findViewById(R.id.progressbar);
    }

}
